package com.ricohgag.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ricohgag.entity.ShopOrder;
import com.ricohgag.entity.UserAddress;
import com.ricohgag.entity.custom.ShopOrderVo;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 肖晖
 * @since 2018-08-25
 */
public interface ShopOrderService extends IService<ShopOrder> {
    public int insertShopOrder(String orderSn , UserAddress address, BigDecimal moneySum, String message) throws Exception;
    public List<ShopOrderVo> selectOrder(String orderSn, Page<ShopOrder> page) throws Exception;
    public ShopOrder selectOrderBySn(String orderSn) throws Exception;
    public ShopOrder selectOrderById(Integer id) throws Exception;
    public IPage<ShopOrder> selectOrderByUserId(Integer userId, Page<ShopOrder> page) throws Exception;

    public boolean updateStatusById(Integer orderId, Integer state);
}
